From: Liangbin Lian Date: Fri, 17 Mar 2023 08:59:45 +0000 (+0800) Subject: luci-theme-bootstrap: set scroll-margin-top for all elements X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22/%22https:/collectd.org/%22?a=commitdiff_plain;h=7a023b3245ccf6fa78601cf2237e6e41e1a3da95;p=project%2Fluci.git luci-theme-bootstrap: set scroll-margin-top for all elements so we can use element.scrollIntoView() with fixed header Signed-off-by: Liangbin Lian --- diff --git a/themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/cascade.css b/themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/cascade.css index ff489b47cc..bf6bc82448 100644 --- a/themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/cascade.css +++ b/themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/cascade.css @@ -154,6 +154,10 @@ * Props to Eric Meyer (meyerweb.com) for his CSS reset file. We're using an adapted version here that cuts out some of the reset HTML elements we will never need here (i.e., dfn, samp, etc). * ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- */ +* { + scroll-margin-top: 40px; +} + *, *::before, *::after { margin: 0; padding: 0;